package cn.chiship.framework.upms.biz.system.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author lijian
 */
@ApiModel(value = "密钥管理表单")
public class UpmsProofDto {

    @ApiModelProperty(value = "项目名称")
    @NotNull
    @Length(min = 1,max = 20)
    private String projectName;

    @ApiModelProperty(value = "项目描述")
    @NotNull
    @Length(min = 1,max = 200)
    private String projectDesc;

    @ApiModelProperty(value = "是否自用")
    @Min(0)
    @Max(1)
    private Byte isSelf;

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectDesc() {
        return projectDesc;
    }

    public void setProjectDesc(String projectDesc) {
        this.projectDesc = projectDesc;
    }

    public Byte getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(Byte isSelf) {
        this.isSelf = isSelf;
    }
}
